﻿using System.Windows;
using Shatkotha.WPF.Global.Bases;
public abstract class APresenter : DependencyObject, IPresenter
{
    public APresenter(IView view)
    {
        View = view;
        view.Presenter = this;
    }
    #region IPresenter Members

    public IView View
    {
        get
        {
            return (IView)GetValue(ViewProperty);
        }
        set
        {
            SetValue(ViewProperty, value);
        }
    }
    public static readonly DependencyProperty ViewProperty =
       DependencyProperty.Register("View", typeof(IView), typeof(APresenter));
    #endregion
}